<?php

namespace Ue\ErpBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * StockAdjustItem
 *
 * @ORM\Table(name="ue_stock_adjust_item", indexes={@ORM\Index(name="ue_stock_adjust_item_adjust_id_idx", columns={"adjust_id"}), @ORM\Index(name="ue_stock_adjust_item_product_id_idx", columns={"product_id"})})
 * @ORM\Entity
 */
class StockAdjustItem
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var integer
     *
     * @ORM\Column(name="qty", type="integer", nullable=true)
     */
    private $qty = '1';

    /**
     * @var \StockAdjust
     *
     * @ORM\ManyToOne(targetEntity="StockAdjust")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="adjust_id", referencedColumnName="id")
     * })
     */
    private $adjust;

    /**
     * @var \Product
     *
     * @ORM\ManyToOne(targetEntity="Product")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="product_id", referencedColumnName="id")
     * })
     */
    private $product;



    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set qty
     *
     * @param integer $qty
     * @return StockAdjustItem
     */
    public function setQty($qty)
    {
        $this->qty = $qty;

        return $this;
    }

    /**
     * Get qty
     *
     * @return integer 
     */
    public function getQty()
    {
        return $this->qty;
    }

    /**
     * Set adjust
     *
     * @param \Ue\ErpBundle\Entity\StockAdjust $adjust
     * @return StockAdjustItem
     */
    public function setAdjust(\Ue\ErpBundle\Entity\StockAdjust $adjust = null)
    {
        $this->adjust = $adjust;

        return $this;
    }

    /**
     * Get adjust
     *
     * @return \Ue\ErpBundle\Entity\StockAdjust 
     */
    public function getAdjust()
    {
        return $this->adjust;
    }

    /**
     * Set product
     *
     * @param \Ue\ErpBundle\Entity\Product $product
     * @return StockAdjustItem
     */
    public function setProduct(\Ue\ErpBundle\Entity\Product $product = null)
    {
        $this->product = $product;

        return $this;
    }

    /**
     * Get product
     *
     * @return \Ue\ErpBundle\Entity\Product 
     */
    public function getProduct()
    {
        return $this->product;
    }
}
